  
    <link rel="stylesheet" href="<?php echo $this->module->assetsUrl; ?>/kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="<?php echo $this->module->assetsUrl; ?>/kindeditor/plugins/code/prettify.css" />
	<script charset="utf-8" src="<?php echo $this->module->assetsUrl; ?>/kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="<?php echo $this->module->assetsUrl; ?>/kindeditor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="<?php echo $this->module->assetsUrl; ?>/kindeditor/plugins/code/prettify.js"></script>
        <script type="text/javascript" src="<?php echo $this->module->assetsUrl; ?>/datepicker/WdatePicker.js" /></script>



<script >
            
    
            KindEditor.ready(function(K) {
            editor = K.create('#News_content', {
            resizeType : 1,
            items : [
           'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste', 'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript', 'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/', 'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage', 'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak', 'anchor', 'link', 'unlink', '|', 'about']
            });

            });
     </script>
  
<script >

	KindEditor.ready(function(K){
		var editor = K.editor({
			allowFileManager:false,
                        urlType : 'domain',
		});
		
	});

</script>



<style type="text/css">
    
div.form label.labelForRadio 
{
    display:inline-block;
    width:auto;float:none;
}
</style>
 


<div class="container-fluid">

    <div class="row-fluid">
        <div class="span12">
            <h3 class="page-title">
                新闻管理 <small>修改</small>
            </h3>
            <ul class="breadcrumb">
                <li>
                    <i class="icon-home"></i>
                    <a href="index">新闻管理</a> 
                    <i class="icon-angle-right"></i>
                </li>
                <li><a href="#">修改</a></li>

            </ul>
            <!-- END PAGE TITLE & BREADCRUMB-->
        </div>
    </div>
    
    <div class="row-fluid">

        <div class="portlet box green">
           <div class="portlet-title line">
                   <div class="caption"><i class="icon-comments"></i>新闻修改</div>
                   <div class="tools">
                        <a href="javascript:;" class="collapse"></a>
                       
		   </div>
           </div>

           <div class="portlet-body">
                      <?php
                        $form = $this->beginWidget(
                                      'CActiveForm', array(
                                  'id' => 'news-form',
                                // 'enableAjaxValidation'=>true,   
                                 'enableClientValidation'=>true,
                                  'clientOptions' => array(
                                      'validateOnSubmit' => true,
                                  ),
                                  'htmlOptions' => array('enctype' => 'multipart/form-data', 'class' => 'form-horizontal'),
                                      // 'action'=>array('/admin'),
                              ));
                    ?>	


                                       <div class="control-group">
                                           <label class="control-label">标题</label>
                                           <div class="controls">

                                               <?php echo $form->textField($News,'title',array('class'=>'m-wrap large','placeholder'=>"标题"))?>
                                               <?php echo $form->error($News, 'title', array('class' => 'label label-danger')); ?>
                                           </div>
                                       </div>


                                       <div class="control-group">
                                           <label class="control-label">新闻背景图片</label>
                                           <div class="controls">
                                                   <div class="fileupload fileupload-new" data-provides="fileupload">


                                                       <img id="file_upload_ws" src="" width="80" height="42" />
                                                       <input type="hidden" name='News[banner_url]' id="Activety_banner_url1">
                                                       <input type="button"  id="News_banner_url" value='点击上传' />

                                                   </div> 
                                           </div>
                                       </div>

                                       <div class="control-group">
                                           <label class="control-label">新闻背景缩略图片</label>
                                           <div class="controls">
                                                   <div class="fileupload fileupload-new" data-provides="fileupload">
                                                        <img id="file_upload_ws_min" src="" width="80" height="42" />
                                                       <input type="hidden" name='News[min_banner_url]' id="Activety_min_banner_url1">
                                                       <input type="button"  id="News_min_banner_url" value='点击上传' />
                                                   </div> 
                                           </div>
                                       </div>


                                       <div class="control-group">
                                           <label class="control-label">内容</label>
                                           <div class="controls">

                                             <?php echo $form->textArea($News,'content',array('class'=>'m-wrap','style'=>'width:800px; height:400px;'))?>
                                           </div>
                                       </div>



                                       <div class="form-actions ">
                                           <button type="button"  id="news-form" class="btn blue"><i class="icon-ok"></i>修改新闻</button>
                                           <button type="button" class="btn">重填</button>
                                       </div>
                                   <?php $this->endWidget(); ?>

           </div>
       </div>

    </div>
</div>


<script type="text/javascript">

 
    $('#submit_vote').click(function(){
         $('#news-form').submit();
   });
   
   
    
    

</script>

